package com.kt.thread.demo;

/**
 * Created by tangwy on 2016/9/13.
 */
public class Print implements Runnable{
    private String threadName;
    public Print(String threadName){
        this.threadName=threadName;
    }
    @Override
    public void run() {
        System.out.println(threadName);
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}